/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-07-12
 * Time: 12:35
 */
public class Summary {
    public static void main(String[] args) {
        int count2=0;
        int max=0;
        int maxIndex=0;
        String s="The only way to do great work is to love what you do.  Steve Jobs";
        s=s.toUpperCase();
        System.out.println(s);
        System.out.println("************************");
        String[] str=s.split(" ");
        int count1=str.length;
        System.out.println(count1);
        System.out.println("************************");
        for (int i = 0; i < str.length; i++) {
            int index=-1;
            for(int j=0;j<str[i].length();j++){
                count2++;
                index=i;
            }
            if(count2>max){
                max=str[index].length();
                maxIndex=index;
            }
            count2=0;
        }

        System.out.println(max);
        System.out.println(str[maxIndex]);


    }

}
